const mongose = require('mongoose')
mongose.connect('mongodb://127.0.0.1:27017/boke')
    .then(() => console.log('mongodb连接成功^-^...'))
    .catch((e) => console.log('mongodb连接失败@-@...', e))

const userModel = require('./models/userModel')

async function aa() {
    let res = await userModel.findOne({username:'163959246'})
    console.log(res);
}

aa()





